package com.tiger.communal.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.tiger.common.annotation.Excel;
import com.tiger.common.core.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;


/**
 * 水电历史记录对象 hydropower_alter
 *
 * @author standard
 * @date 2022-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hydropower_alter对象", description = "水电历史记录内容")
public class HydropowerAlter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 总表id
     */
    @Excel(name = "总表id")
    @ApiModelProperty(value = "总表id")
    private Long hydropowerId;

    /**
     * 1-水总表  2-电总表
     */
    @Excel(name = " 1-水总表  2-电总表")
    @ApiModelProperty(value = " 1-水总表  2-电总表")
    private String type;

    /**
     * 示数
     */
    @Excel(name = "示数")
    @ApiModelProperty(value = "示数")
    private String degree;

    /**
     * 抄表图片
     */
    @Excel(name = "抄表图片")
    @ApiModelProperty(value = "抄表图片")
    private String meterReadPicture;

    /**
     * 当月支出
     */
    @Excel(name = "当月支出")
    @ApiModelProperty(value = "当月支出")
    private BigDecimal expenditure;

    /**
     * 填写人id
     */
    @Excel(name = "填写人id")
    @ApiModelProperty(value = "填写人id")
    private Long writtenById;

    /**
     * 填写人姓名
     */
    @Excel(name = "填写人姓名")
    @ApiModelProperty(value = "填写人姓名")
    private String writtenByName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "1-升序 2-降序")
    private Long rank;

    /**
     * 总表用量
     */
    @ApiModelProperty(value = "总表用量")
    private String dosage;

    @ApiModelProperty(value = "分表总用量")
    private Float submeterNum;

    @ApiModelProperty(value = "分表总收入")
    private BigDecimal countMoney;

    @ApiModelProperty(value = "当月盈利")
    private BigDecimal nowMonthMoney;




}
